package algorithm;


import java.util.Scanner;

/**
 * 整体 O(n)
 */
public class Demo8 {
    public static void main(String[] args) {
        int i;
        Scanner scanner = new Scanner(System.in);
        int n = scanner.nextInt();
        for(i = 0; i < n; i++) {
            function(i);
        }
    }

    // O(1)
    private static void function(int i) {
        System.out.println(i);
    }
}
